package com.itmk.web.meteorological_station.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Getter
@Setter
@TableName("meteorological_station")
@Entity
public class MeteorologicalStation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    @Id
    private Integer id;

    private BigDecimal humidity;
    private BigDecimal precipitation; // 降雨量
    private BigDecimal temperature;
    private BigDecimal uVIntensity;

    @Column(name = "windspeed")
    private BigDecimal windSpeed;

    private LocalDateTime dt; // 时间戳
}
